package com.example.forumsystem.demos.web.service;

import com.example.forumsystem.demos.web.model.UserInfo;
import org.springframework.stereotype.Service;

@Service
public interface IUserService {
    UserInfo selectByUserName (String username);
    void createNormalUser (UserInfo user);

    UserInfo login(String username, String password);

    UserInfo selectById(Long id);

    void addOneArticleCountById(Long id);

    void cutOneArticleCountById(Long userId);

    void modifyBasin(UserInfo user);

    void modifyPassword(Long id, String newPassword, String oldPassword);
}
